<div>
    <div class="white-bg padding-lg padding-top border-radius">
        <div class="flex justify-between">
            <div class="text-title">任务单详情</div>
            <div>
                <button type="button" class="btn btn-primary btn-sm" style="margin-left:10px" v-on:click="vc.goBack()">
                    <i class="fa fa-close"></i>返回
                </button>
            </div>
        </div>
        <!-- 业主信息 -->
        <div class="margin-top">
            <div class="row">
                <div class="col-sm-3">
                    <div class="form-group">
                        <label class="col-form-label">
                            <vc:i18n name="工单编号：" namespace="doCopyWorkInfo"></vc:i18n>
                        </label>
                        <label class="">{{doCopyWorkInfo.workId}}</label>
                    </div>
                </div>
                <div class="col-sm-3">
                    <div class="form-group">
                        <label class="col-form-label">
                            <vc:i18n name="工单名称：" namespace="doCopyWorkInfo"></vc:i18n>
                        </label>
                        <label class="">{{doCopyWorkInfo.workName}}</label>
                    </div>
                </div>
                <div class="col-sm-3">
                    <div class="form-group">
                        <label class="col-form-label">
                            <vc:i18n name="类型名称：" namespace="doCopyWorkInfo"></vc:i18n>
                        </label>
                        <label class="">
                            {{doCopyWorkInfo.typeName}}
                        </label>
                    </div>
                </div>
                <div class="col-sm-3">
                    <div class="form-group">
                        <label class="col-form-label">
                            <vc:i18n name="标识：" namespace="doCopyWorkInfo"></vc:i18n>
                        </label>
                        <label class="">{{doCopyWorkInfo.workCycle == '1001'?'一次性工单':'周期性工单'}}</label>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-3">
                    <div class="form-group">
                        <label class="col-form-label">
                            <vc:i18n name="开始时间：" namespace="doCopyWorkInfo"></vc:i18n>
                        </label>
                        <label class="">{{doCopyWorkInfo.startTime}}</label>
                    </div>
                </div>
                <div class="col-sm-3">
                    <div class="form-group">
                        <label class="col-form-label">
                            <vc:i18n name="结束时间：" namespace="doCopyWorkInfo"></vc:i18n>
                        </label>
                        <label class="">{{doCopyWorkInfo.endTime}}</label>
                    </div>
                </div>
                <div class="col-sm-3">
                    <div class="form-group">
                        <label class="col-form-label">
                            <vc:i18n name="发起人：" namespace="doCopyWorkInfo"></vc:i18n>
                        </label>
                        <label class="">{{doCopyWorkInfo.createUserName}}</label>
                    </div>
                </div>
                <div class="col-sm-3">
                    <div class="form-group">
                        <label class="col-form-label">
                            <vc:i18n name="处理人：" namespace="doCopyWorkInfo"></vc:i18n>
                        </label>
                        <label class="">{{doCopyWorkInfo.curStaffName || '-'}}</label>
                    </div>
                </div>
                <div class="col-sm-3">
                    <div class="form-group">
                        <label class="col-form-label">
                            <vc:i18n name="抄送人：" namespace="doCopyWorkInfo"></vc:i18n>
                        </label>
                        <label class="">{{doCopyWorkInfo.curCopyName || '-'}}</label>
                    </div>
                </div>
                <div class="col-sm-3">
                    <div class="form-group">
                        <label class="col-form-label">
                            <vc:i18n name="状态：" namespace="doCopyWorkInfo"></vc:i18n>
                        </label>
                        <label class="">{{doCopyWorkInfo.stateName}}</label>
                    </div>
                </div>
                <div class="col-sm-3">
                    <div class="form-group">
                        <label class="col-form-label">
                            <vc:i18n name="创建时间：" namespace="doCopyWorkInfo"></vc:i18n>
                        </label>
                        <label class="">{{doCopyWorkInfo.createTime}}</label>
                    </div>
                </div>
                <div class="col-sm-3">
                    <div class="form-group" v-if="doCopyWorkInfo.pathUrl">
                        <label class="col-form-label">
                            <vc:i18n name="附件：" namespace="doCopyWorkInfo"></vc:i18n>
                        </label>
                        <label class="">
                            <a :href="doCopyWorkInfo.pathUrl">下载</a>
                        </label>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="ibox margin-top">

        <div class="ibox-content">
            <table class="table table-stripped">
                <thead>
                    <tr>
                        <th class="text-center">
                            <vc:i18n name="选择" namespace="doCopyWork"></vc:i18n>
                        </th>
                        <th data-hide="phone" class="text-center">
                            <vc:i18n name="工作单内容" namespace="doCopyWork"></vc:i18n>
                        </th>

                        <th data-hide="phone" class="text-center">
                            <vc:i18n name="处理意见" namespace="doCopyWork"></vc:i18n>
                        </th>
                        <th data-hide="phone" class="text-center">
                            <vc:i18n name="状态" namespace="doCopyWork"></vc:i18n>
                        </th>
                        <th data-hide="phone" class="text-center">
                            <vc:i18n name="处理人" namespace="doCopyWork"></vc:i18n>
                        </th>
                        <th data-hide="phone" class="text-center">
                            <vc:i18n name="完成时间" namespace="doCopyWork"></vc:i18n>
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <tr v-for="(item,index) in doCopyWorkInfo.items" :key="index">
                        <td class="text-center" style="width: 300px;" @click="_selectContent(item)">
                            <input type="radio" name="contentCheck" v-if="item.state == 'C' " :value="item.itemId"
                                v-model="doCopyWorkInfo.audit.itemId">
                            <span v-else>-</span>
                        </td>
                        <td class="" @click="_selectContent(item)">
                            <div class="flex justify-start">
                                <div>{{index+1}}、</div>
                                <div v-html="item.content"></div>
                            </div>
                        </td>

                        <td class="text-center" style="width: 300px;">
                            {{item.remark}}
                        </td>
                        <td class="text-center" style="width: 150px;">
                            {{item.state == 'W'?'待处理':'已处理'}}
                        </td>
                        <td class="text-center" style="width: 150px;">
                            {{item.staffName}}
                        </td>
                        <td class="text-center" style="width: 150px;">
                            {{item.finishTime}}
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>

    <div class="row margin-top" v-if=" doCopyWorkInfo.audit.itemId">
        <div class="col-lg-12">
            <div class="ibox">
                <div class="ibox-title">
                    <h5>
                        <vc:i18n name="抄送办理" namespace="doCopyWork"></vc:i18n>
                    </h5>
                    <div class="ibox-tools" style="top:10px;"></div>
                </div>
                <div class="ibox-content">
                    <div class="form-group row" v-if="doCopyWorkInfo.deduction == 'Y'">
                        <label class="col-sm-2 col-form-label text-right">
                            <vc:i18n name="扣款金额" namespace="doCopyWork"></vc:i18n>
                        </label>
                        <div class="col-sm-10">
                            <input :placeholder="vc.i18n('必填，请填写扣款金额','doCopyWork')" type="number" class="form-control"
                                v-model.trim="doCopyWorkInfo.audit.deductionMoney"/>
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-sm-2 col-form-label text-right">
                            <vc:i18n name="说明" namespace="doCopyWork"></vc:i18n>
                        </label>
                        <div class="col-sm-10">
                            <textarea :placeholder="vc.i18n('必填，请填写说明','doCopyWork')" class="form-control"
                                v-model.trim="doCopyWorkInfo.audit.deductionReason">
                            </textarea>
                        </div>
                    </div>
                    <div class="ibox-content">
                        <button class="btn btn-primary float-right" type="button" v-on:click="_auditSubmit()">
                            <i class="fa fa-check"></i>提交
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>